'''
Author: cw
Date: 2025-07-21
Description: ...
'''
from pydantic import BaseModel, Field


class OptionalModel(BaseModel):
    '''选项'''
    key: str = Field(description="选项")
    value: str = Field(description="选项内容")
    score: int = Field(description="得分")


class Answer(BaseModel):
    '''用户答案'''
    question_id: int = Field(description="题目id")
    question_title: str = Field(description="题目标题")
    question_group: str = Field(description="题目类型")
    answer_key: str = Field(description="用户答案")
    answer_value: str = Field(description="用户答案")
    answer_score: int = Field(description="得分")
